package com.pansoft.openplanet.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author YQS
 */
public class AirDropModel implements Serializable {
    /**
     * result : success
     * page : {"allRow":7,"currentPage":1,"pageSize":10,"totalPage":1}
     * airportlist : [{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/b34af7c3-8a91-41b3-bd5a-d7b7512f2cac/download","brief":"ddd","contractAddress":"ee","createTime":1533784108000,"createrId":111,"detail":"ss","distributionNumber":0,"distributionPercent":0,"endTime":1534435200000,"endTimeOfHour":180,"endTimeOfMinute":46,"id":14,"name":"adsdassd","organization":"ee","peopleNumber":12,"rules_radio":1,"startTime":1534867200000,"status":1,"tokenNumber":123},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/bf4827b5-94fb-47c8-8490-7ea2555ea5c6/download","brief":"ssdd","contractAddress":"ddd","createTime":1533783653000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1534262400000,"endTimeOfHour":132,"endTimeOfMinute":46,"id":13,"name":"20180809","organization":"ssdd","peopleNumber":0,"rules_radio":1,"startTime":1534176000000,"status":1,"tokenNumber":123},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/60d8ba2f-8ed4-4649-b034-72fa43826ee9/download","brief":"sss","contractAddress":"ddd","createTime":1533781796000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1533916800000,"endTimeOfHour":36,"endTimeOfMinute":46,"id":12,"name":"test5","organization":"ddd","peopleNumber":0,"rules_radio":1,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/3d865cc1-84a9-473b-9b86-dfef7762563a/download","brief":"sss","contractAddress":"ddd","createTime":1533781789000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1533916800000,"endTimeOfHour":36,"endTimeOfMinute":46,"id":11,"name":"test4","organization":"ddd","peopleNumber":0,"rules_radio":1,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/019598d6-f12e-4702-b225-7cd81c1dedd3/download","brief":"sss","contractAddress":"ddd","createTime":1533781775000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1533916800000,"endTimeOfHour":36,"endTimeOfMinute":46,"id":10,"name":"test3","organization":"ddd","peopleNumber":0,"rules_radio":1,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/c3f2ef0c-7fdd-4bad-92e4-c3de92feef05/download","brief":"sss","contractAddress":"ddd","createTime":1533781758000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1534867200000,"endTimeOfHour":300,"endTimeOfMinute":46,"id":9,"name":"test2","organization":"ddd","peopleNumber":0,"rules_radio":1,"startTime":1534694400000,"status":1,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/c90e0bcf-4d1b-4360-a46f-6be068d054b4/download","brief":"sss","contractAddress":"ddd","createTime":1533781728000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":0,"endTime":1533657600000,"endTimeOfHour":0,"endTimeOfMinute":0,"id":8,"name":"test1","organization":"ddd","peopleNumber":0,"rules_radio":1,"startTime":1533571200000,"status":4,"tokenNumber":120}]
     */

    public static final int STATE_UNSTART = 1;//未开始
    public static final int STATE_STARTED = 2;//正在抢
    public static final int STATE_NO_ENOUGH = 3;//已抢光
    public static final int STATE_STOP = 4;//已结束
    /**
     * result : success
     * page : {"allRow":9,"currentPage":1,"pageSize":10,"totalPage":1}
     * airportlist : [{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/0f8e19da-61f1-4b03-b197-4d24aa20ef17/download","brief":"ss","coinName":"能量币","contractAddress":"","createTime":1533799229000,"createrId":111,"detail":"[object Object]","distributionNumber":0,"distributionPercent":"0.00","endTime":1533830400000,"endTimeOfHour":8,"endTimeOfMinute":47,"id":16,"name":"发币","organization":"dd","peopleNumber":12,"rules_radio":0,"startTime":1533744000000,"status":2,"tokenNumber":120.233},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/4d4a5aab-1ab5-40fd-863b-42bb3d1193b2/download","brief":"eqwqweqwe","coinName":"asdsd","contractAddress":"dasd","createTime":1533795399000,"createrId":111,"detail":"eed","distributionNumber":1.30001,"distributionPercent":"0.11","endTime":1534694400000,"endTimeOfHour":248,"endTimeOfMinute":47,"id":15,"name":"qweweqwe","organization":"sadsd","peopleNumber":1223,"rules_radio":0,"startTime":1534176000000,"status":1,"tokenNumber":12.23},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/b34af7c3-8a91-41b3-bd5a-d7b7512f2cac/download","brief":"ddd","coinName":"能量币","contractAddress":"ee","createTime":1533784108000,"createrId":111,"detail":"ss","distributionNumber":0,"distributionPercent":"0.00","endTime":1534435200000,"endTimeOfHour":176,"endTimeOfMinute":47,"id":14,"name":"adsdassd","organization":"ee","peopleNumber":12,"rules_radio":1,"startTime":1534867200000,"status":1,"tokenNumber":123},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/bf4827b5-94fb-47c8-8490-7ea2555ea5c6/download","brief":"ssdd","coinName":"能量币","contractAddress":"ddd","createTime":1533783653000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1534262400000,"endTimeOfHour":128,"endTimeOfMinute":47,"id":13,"name":"20180809","organization":"ssdd","peopleNumber":10,"rules_radio":1,"startTime":1534176000000,"status":1,"tokenNumber":123},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/60d8ba2f-8ed4-4649-b034-72fa43826ee9/download","brief":"sss","coinName":"能量币","contractAddress":"ddd","createTime":1533781796000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1533916800000,"endTimeOfHour":32,"endTimeOfMinute":47,"id":12,"name":"test5","organization":"ddd","peopleNumber":10,"rules_radio":0,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/3d865cc1-84a9-473b-9b86-dfef7762563a/download","brief":"sss","coinName":"能量币","contractAddress":"ddd","createTime":1533781789000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1533916800000,"endTimeOfHour":32,"endTimeOfMinute":47,"id":11,"name":"test4","organization":"ddd","peopleNumber":10,"rules_radio":1,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/019598d6-f12e-4702-b225-7cd81c1dedd3/download","brief":"sss","coinName":"能量币","contractAddress":"ddd","createTime":1533781775000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1533916800000,"endTimeOfHour":32,"endTimeOfMinute":47,"id":10,"name":"test3","organization":"ddd","peopleNumber":10,"rules_radio":1,"startTime":1533744000000,"status":2,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/c3f2ef0c-7fdd-4bad-92e4-c3de92feef05/download","brief":"sss","coinName":"能量币","contractAddress":"ddd","createTime":1533781758000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1534867200000,"endTimeOfHour":296,"endTimeOfMinute":47,"id":9,"name":"test2","organization":"ddd","peopleNumber":10,"rules_radio":1,"startTime":1534694400000,"status":1,"tokenNumber":120},{"airportPicture":"http://panserver.solarsource.cn:9692/panserver/files/c90e0bcf-4d1b-4360-a46f-6be068d054b4/download","brief":"sss","coinName":"能量币","contractAddress":"ddd","createTime":1533781728000,"createrId":111,"detail":"ddd","distributionNumber":0,"distributionPercent":"0.00","endTime":1533657600000,"endTimeOfHour":0,"endTimeOfMinute":0,"id":8,"name":"test1","organization":"ddd","peopleNumber":10,"rules_radio":1,"startTime":1533571200000,"status":4,"tokenNumber":120}]
     */

    private String result;
    private PageBean page;
    private List<AirportlistBean> airportlist;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public PageBean getPage() {
        return page;
    }

    public void setPage(PageBean page) {
        this.page = page;
    }

    public List<AirportlistBean> getAirportlist() {
        return airportlist;
    }

    public void setAirportlist(List<AirportlistBean> airportlist) {
        this.airportlist = airportlist;
    }

    public static class PageBean {
        /**
         * allRow : 9
         * currentPage : 1
         * pageSize : 10
         * totalPage : 1
         */

        private int allRow;
        private int currentPage;
        private int pageSize;
        private int totalPage;

        public int getAllRow() {
            return allRow;
        }

        public void setAllRow(int allRow) {
            this.allRow = allRow;
        }

        public int getCurrentPage() {
            return currentPage;
        }

        public void setCurrentPage(int currentPage) {
            this.currentPage = currentPage;
        }

        public int getPageSize() {
            return pageSize;
        }

        public void setPageSize(int pageSize) {
            this.pageSize = pageSize;
        }

        public int getTotalPage() {
            return totalPage;
        }

        public void setTotalPage(int totalPage) {
            this.totalPage = totalPage;
        }
    }

    public static class AirportlistBean {
        /**
         * airportPicture : http://panserver.solarsource.cn:9692/panserver/files/0f8e19da-61f1-4b03-b197-4d24aa20ef17/download
         * brief : ss
         * coinName : 能量币
         * contractAddress :
         * createTime : 1533799229000
         * createrId : 111
         * detail : [object Object]
         * distributionNumber : 0.0
         * distributionPercent : 0.00
         * endTime : 1533830400000
         * endTimeOfHour : 8
         * endTimeOfMinute : 47
         * id : 16
         * name : 发币
         * organization : dd
         * peopleNumber : 12
         * rules_radio : 0
         * startTime : 1533744000000
         * status : 2
         * tokenNumber : 120.233
         */

        private String airportPicture;
        private String brief;
        private String coinName;
        private String contractAddress;
        private long createTime;
        private String createrId;
        private String detail;
        private double distributionNumber;
        private String distributionPercent;
        private long endTime;
        private int endTimeOfHour;
        private int endTimeOfMinute;
        private int id;
        private String name;
        private String organization;
        private int peopleNumber;
        private int rules_radio;
        private long startTime;
        private int status;
        private double tokenNumber;
        private int endTimeOfDay;
        private String blockchainId;
        private int flag;//0 为抢过 1 一抢过

        public int getFlag() {
            return flag;
        }

        public void setFlag(int flag) {
            this.flag = flag;
        }
        public int getEndTimeOfDay() {
            return endTimeOfDay;
        }

        public AirportlistBean setEndTimeOfDay(int endTimeOfDay) {
            this.endTimeOfDay = endTimeOfDay;
            return this;
        }

        public String getBlockchainId() {
            return blockchainId;
        }

        public AirportlistBean setBlockchainId(String blockchainId) {
            this.blockchainId = blockchainId;
            return this;
        }

        public String getAirportPicture() {
            return airportPicture;
        }

        public void setAirportPicture(String airportPicture) {
            this.airportPicture = airportPicture;
        }

        public String getBrief() {
            return brief;
        }

        public void setBrief(String brief) {
            this.brief = brief;
        }

        public String getCoinName() {
            return coinName;
        }

        public void setCoinName(String coinName) {
            this.coinName = coinName;
        }

        public String getContractAddress() {
            return contractAddress;
        }

        public void setContractAddress(String contractAddress) {
            this.contractAddress = contractAddress;
        }

        public long getCreateTime() {
            return createTime;
        }

        public void setCreateTime(long createTime) {
            this.createTime = createTime;
        }

        public String getCreaterId() {
            return createrId;
        }

        public void setCreaterId(String createrId) {
            this.createrId = createrId;
        }

        public String getDetail() {
            return detail;
        }

        public void setDetail(String detail) {
            this.detail = detail;
        }

        public double getDistributionNumber() {
            return distributionNumber;
        }

        public void setDistributionNumber(double distributionNumber) {
            this.distributionNumber = distributionNumber;
        }

        public String getDistributionPercent() {
            return distributionPercent;
        }

        public void setDistributionPercent(String distributionPercent) {
            this.distributionPercent = distributionPercent;
        }

        public long getEndTime() {
            return endTime;
        }

        public void setEndTime(long endTime) {
            this.endTime = endTime;
        }

        public int getEndTimeOfHour() {
            return endTimeOfHour;
        }

        public void setEndTimeOfHour(int endTimeOfHour) {
            this.endTimeOfHour = endTimeOfHour;
        }

        public int getEndTimeOfMinute() {
            return endTimeOfMinute;
        }

        public void setEndTimeOfMinute(int endTimeOfMinute) {
            this.endTimeOfMinute = endTimeOfMinute;
        }

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getOrganization() {
            return organization;
        }

        public void setOrganization(String organization) {
            this.organization = organization;
        }

        public int getPeopleNumber() {
            return peopleNumber;
        }

        public void setPeopleNumber(int peopleNumber) {
            this.peopleNumber = peopleNumber;
        }

        public int getRules_radio() {
            return rules_radio;
        }

        public void setRules_radio(int rules_radio) {
            this.rules_radio = rules_radio;
        }

        public long getStartTime() {
            return startTime;
        }

        public void setStartTime(long startTime) {
            this.startTime = startTime;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public double getTokenNumber() {
            return tokenNumber;
        }

        public void setTokenNumber(double tokenNumber) {
            this.tokenNumber = tokenNumber;
        }
    }


//
//    private String airDropId;
//    private String name;
//    private String title;
//    private Object icon;
//    private String endTime;
//    private int progress;
//    private int state ;
//    private String assetName ;
//    private String banlance;
//    private AirDropModel(Builder builder) {
//        airDropId = builder.airDropId;
//        name = builder.name;
//        title = builder.title;
//        icon = builder.icon;
//        endTime = builder.endTime;
//        progress = builder.progress;
//        state = builder.state;
//        assetName = builder.assetName;
//    }
//
//    public static final class Builder {
//        private String airDropId;
//        private String name;
//        private String title;
//        private Object icon;
//        private String endTime;
//        private int progress;
//        private int state;
//        private String assetName ;
//        public Builder() {
//        }
//
//        public Builder airDropId(String val) {
//            airDropId = val;
//            return this;
//        }
//
//        public Builder name(String val) {
//            name = val;
//            return this;
//        }
//
//        public Builder title(String val) {
//            title = val;
//            return this;
//        }
//
//        public Builder icon(Object val) {
//            icon = val;
//            return this;
//        }
//
//        public Builder endTime(String val) {
//            endTime = val;
//            return this;
//        }
//
//        public Builder progress(int val) {
//            progress = val;
//            return this;
//        }
//
//        public Builder state(int val) {
//            state = val;
//            return this;
//        }
//        public Builder assetName(String val) {
//            assetName = val;
//            return this;
//        }
//        public AirDropModel build() {
//            return new AirDropModel(this);
//        }
//    }
//
//    public String getAirDropId() {
//        return airDropId;
//    }
//
//    public AirDropModel setAirDropId(String airDropId) {
//        this.airDropId = airDropId;
//        return this;
//    }
//
//    public String getName() {
//        return name;
//    }
//
//    public AirDropModel setName(String name) {
//        this.name = name;
//        return this;
//    }
//
//    public String getTitle() {
//        return title;
//    }
//
//    public AirDropModel setTitle(String title) {
//        this.title = title;
//        return this;
//    }
//
//    public Object getIcon() {
//        return icon;
//    }
//
//    public AirDropModel setIcon(Object icon) {
//        this.icon = icon;
//        return this;
//    }
//
//    public String getEndTime() {
//        return endTime;
//    }
//
//    public AirDropModel setEndTime(String endTime) {
//        this.endTime = endTime;
//        return this;
//    }
//
//    public int getProgress() {
//        return progress;
//    }
//
//    public AirDropModel setProgress(int progress) {
//        this.progress = progress;
//        return this;
//    }
//
//    public int getState() {
//        return state;
//    }
//
//    public AirDropModel setState(int state) {
//        this.state = state;
//        return this;
//    }
//
//    public String getAssetName() {
//        return assetName;
//    }
//
//    public AirDropModel setAssetName(String assetName) {
//        this.assetName = assetName;
//        return this;
//    }


}
